API Documentation
Static Public Member Functions | List of all members
nkAstraeus::lua::nkGraphicsWrap::SubEntityWrapper Class Referencefinal

Wraps a nkGraphics::SubEntity and offers functions for use in scripting. More...

Static Public Member Functions

static void updateEnvironment (nkScripts::Environment *env)
 
static nkScripts::OutputValue setMesh (const nkScripts::DataStack &stack)
 
static nkScripts::OutputValue getBounds (const nkScripts::DataStack &stack)
 

Detailed Description

Wraps a nkGraphics::SubEntity and offers functions for use in scripting.

Member Function Documentation

◆ updateEnvironment()

static void nkAstraeus::lua::nkGraphicsWrap::SubEntityWrapper::updateEnvironment ( nkScripts::Environment env)
static

Updates a given environment and set it up to use all functions wrapped by this wrapper.

Parameters
envThe environment to set up.

◆ setMesh()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::SubEntityWrapper::setMesh ( const nkScripts::DataStack stack)
static

Wrapper function for the nkGraphics::SubEntity::setMesh().

n:setMesh(e) ;
Parameters
stackThe parameter stack.
Returns
The attribute value, empty.

◆ getBounds()

static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::SubEntityWrapper::getBounds ( const nkScripts::DataStack stack)
static

Wrapper function for the nkGraphics::SubEntity::getBounds().

local b = n:getBounds() ;
Parameters
stackThe parameter stack.
Returns
The attribute value, a nkGraphics::BoundingBox.

The documentation for this class was generated from the following file: